import request from "@/utils/request";
//获取map
export function getMap(){
    return request({
        url:`/warehouse/material_receive_return/FindReturnMap`,
        method:'GET',
    })
}
//库房
export function settingList(params){
    return request({
        url:`/warehouse/setting/list`,
        method:'POST',
        data:params
    })
}
//领用归还List
export function ListFind(params){
    return request({
        url:`/warehouse/material_receive_return/ReceiveReturnListFind`,
        method:'POST',
        data:params
    })
}
//领用创建明细
export function FindMaterialAccountNameCode(params){
    return request({
        url:`/warehouse/material_receive_return/FindMaterialAccountNameCode`,
        method:'POST',
        data:params
    })
}
//归还创建明细
export function FindNameCode(params){
    return request({
        url:`/warehouse/material_receive_return/FindNameCode`,
        method:'POST',
        data:params
    })
}
//领用新增
export function ReceiveReturnAdd(params){
    return request({
        url:`/warehouse/material_receive_return/ReceiveReturnAdd`,
        method:'POST',
        data:params
    })
}
//领用详情
export function FindReturnDetails(Id){
    return request({
        url:`/warehouse/material_receive_return/FindReturn/${Id}`,
        method:'GET',
    })
}
//明细列表查询
export function AccountDetails(params){
    return request({
        url:`/warehouse/material_receive_return/FindMaterialAccountDetailed`,
        method:'POST',
        data: params
    })
}
//明细详情查询
export function FindReturnCode(code){
    return request({
        url:`/warehouse/material_receive_return/FindReturnCode/${code}`,
        method:'GET'
    })
}
//操作记录
export function FindMaterialLog(id){
    return request({
        url:`/warehouse/material_receive_return/FindMaterialLog/${id}`,
        method:'GET'
    })
}
//编辑查详情
export function FindReturn(id){
    return request({
        url:`/warehouse/material_receive_return/FindReturn/${id}`,
        method:'GET'
    })
}
//物料台账查询
export function materialQuerys(params){
    return request({
        url:`/warehouse/goods/material/query`,
        method:'POST',
        data: params
    })
}
